# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:  Francesco Colista <fcolista@alpinelinux.org>
pkgname=mktorrent
pkgver=1.1
pkgrel=3
pkgdesc="A handy tool for creating .torrent files"
url="https://github.com/Rudde/mktorrent"
arch="all"
license="GPL-2.0-or-later"
makedepends="openssl-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Rudde/mktorrent/archive/v$pkgver.tar.gz"

build() {
	make
}

check() {
	./mktorrent -h > /dev/null
}

package() {
	install -D -m755 mktorrent $pkgdir/usr/bin/mktorrent
	install -D -m644 COPYING $pkgdir/usr/share/licenses/mktorrent/COPYING
}

sha512sums="2a7ce83950711cf5be098693ad79273b29bcd8a5ef345ea296c7b6b83c532dd3463b347c7137234f1890cb4ea663ee5a5b1878591bc8fb4386d94e4f65410859  mktorrent-1.1.tar.gz"
